package Data::Conveyor::Ticket::Payload::Instruction::Container_TEST;

# $Id: Container_TEST.pm 13653 2007-10-22 09:11:20Z gr $

use warnings;
use strict;
use Test::More;


our $VERSION = '0.02';


use base 'Data::Conveyor::Test';


use constant PLAN => 1;


sub gen_filled_container {
    my ($self, @instruction_specs) = @_;

    my $container = $self->delegate->make_obj('payload_instruction_container');
    our $factory ||= $self->delegate->make_obj('payload_instruction_factory');

    for my $spec (@instruction_specs) {
        my ($command, $type, $value) = @$spec;
        $container->items_push(
            $factory->gen_instruction($type,
                command => $self->delegate->$command,
                value   => $value)
        );
    }

    $container;
}


sub run {
    my $self = shift;
    $self->SUPER::run(@_);
    pass('dummy test to keep class tests happy');
}


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - stage-based conveyor-belt-like ticket handling system

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

None yet. This is an early release; fully functional, but undocumented. The
next release will have more documentation.

=head1 METHODS

=over 4

{% p.write_methods %}

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

